package com.hanfu.ucenter.web.web.controller;

import com.hanfu.ucenter.web.exception.UCenterException;
import com.hanfu.ucenter.web.web.param.UserDto;
import com.hanfu.ucenter.web.web.param.union.ReqMerchantEnter;
import com.hanfu.ucenter.web.web.service.MerchantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: yQJun
 * Description：   商家入驻信息上传 （银联接口文档：  3.12 快速入网后台档案资料上传接口）
 * @Date：Created in 16:28  2019/9/19
 */

@RestController
@RequestMapping(method = RequestMethod.POST, value = "/uCenter/merchantEnter")
public class MerchantEnterController    extends UCenterBaseController<ReqMerchantEnter,Boolean> {

    @Autowired
    private   MerchantService merchantService;

    @Override
    protected Boolean doService(ReqMerchantEnter req, HttpServletRequest httpServletRequest, UserDto userInfo) throws UCenterException {
        System.out.println("+++++++++++++"+req.getProduct_card_fee_list());
        return merchantService.submitMerchantEnter(req);
    }
}
